//
//  CycUnit.h
//  Cycling
//
//  Created by cjg.mini on 2023/4/11.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface CycUnit : NSObject

@property (nonatomic, assign, class) BOOL useMetricUnit;

+ (double)temperatureForValue:(double)value;
+ (nonnull NSString *)temperatureUnit;

+ (double)speedForValue:(double)value;
+ (double)speedForValue1:(double)value;
+ (nonnull NSString *)speedUnit;

+ (double)energyConsumptionForValue:(double)value;
+ (nonnull NSString *)energyConsumptionUnit;

+ (double)mileageForValue:(double)value;
+ (nonnull NSString *)mileageUnit;

+ (nonnull NSString *)timeStringForInterval:(double)interval;

@end

NS_ASSUME_NONNULL_END
